Skip to content

Fix duel teleport and quit bugs#288

Open
GG-MD wants to merge 2 commits intodumbo-the-developer:masterfrom
GG-MD:fix/duel-teleport-and-quit-bugs
Open

Fix duel teleport and quit bugs#288
GG-MD wants to merge 2 commits intodumbo-the-developer:masterfrom
GG-MD:fix/duel-teleport-and-quit-bugs

Conversation

@GG-MD
Copy link
Contributor

@GG-MD GG-MD commented Mar 22, 2026

@GG-MD
Copy link
Contributor Author

GG-MD commented Mar 22, 2026

  • Players got stuck unable to break/place blocks after disconnecting during a duel. Calling reset() and restore() on a dead player in the quit handler corrupted their saved state. Now the quit handler only kills the player, and state is properly restored via PlayerRespawnEvent on rejoin.
  • Sleeping players couldn't be teleported to the arena ("Player is dead or is vehicle" error). Added wakeup() and leaveVehicle() before teleporting.
  • Fixed redundant teleport listener code from previous commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant